package com.platform.service.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.platform.annotation.Authentication;
import com.platform.base.BaseServiceImpl;
import com.platform.base.mvc.IBaseMapper;
import com.platform.dao.SysLogCustomDAO;
import com.platform.dto.SysLogCustomDTO;
import com.platform.logger.model.CustomLogModel;
import com.platform.logger.service.ICustomLogService;
import com.platform.service.SysLogCustomService;

/**
 * 操作的记录日志; InnoDB free: 368640 kB
 * 
 * @author platform
 * @email 15909910367@163.com
 * @date 2022-10-28 17:37:15
 */
@Service("sysLogCustomService")
public class SysLogCustomServiceImpl extends BaseServiceImpl<SysLogCustomDTO> implements SysLogCustomService,ICustomLogService {
	@Autowired
	private SysLogCustomDAO sysLogCustomDAO;

	@Override
	public IBaseMapper<SysLogCustomDTO> getMapper() {
		return sysLogCustomDAO;
	}

	@Override
	@Authentication
	public void saveCustomLog(CustomLogModel customLog) {
		SysLogCustomDTO dto = new SysLogCustomDTO();
		BeanUtils.copyProperties(customLog, dto);
		sysLogCustomDAO.insert(dto);
	}
}
